#
# fuqiyang, owned by pear
#
#

# tool options
#
CP_GCC := gcc
CP_CLFAGS := -lz
CP_AR := ar
CP_AR_FLAGS := -rcs
RM_FORCE := rm -rf


# libtar options
#
LIB_PRTAR_OBJES := glob.o libtar_hash.o libtar_list.o snprintf.o strlcpy.o strmode.o util.o append.o block.o decode.o encode.o libtar.o
LIB_PRTAR_TARGET := libprtar.a


${LIB_PRTAR_TARGET} : ${LIB_PRTAR_OBJES}
	${CP_AR} ${CP_AR_FLAGS} $@ $^

.o : .c
	${CP_GCC} -c $< -o $@


.PHONY : clean
clean:
	${RM_FORCE} ${LIB_PRTAR_TARGET} ${LIB_PRTAR_OBJES} 



